<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class Cates extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        if(!Schema::HasTable('cates')){
            Schema::create('cates',function(Blueprint $table){
                $table->increments('id');
                $table->string('name')->unique();
                $table->string('brank');
                $table->integer('pid');
                $table->string('path');
                $table->enum('status', ['0','1'])->default('0');
                $table->timestamps();
            });
        }
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        // Schema::drop('cates');
    }
}
